* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameContainer {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

#gameTitle {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

#gameTitle h1 {
    font-size: 3em;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#startBtn, #restartBtn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#startBtn:hover, #restartBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

#gameArea {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#gameInfo {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#gameInfo div {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

#score span {
    color: #27ae60;
}

#health span {
    color: #e74c3c;
}

#energy span {
    color: #3498db;
}

#gameCanvas {
    border: 3px solid #333;
    border-radius: 10px;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 50%, #8FBC8F 100%);
    display: block;
    margin: 0 auto;
}

#controls {
    margin-top: 15px;
    text-align: left;
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 10px;
}

#controls h3 {
    color: #333;
    margin-bottom: 10px;
}

#controls p {
    color: #666;
    margin: 5px 0;
    font-size: 0.9em;
}

#gameOver {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#gameOver h2 {
    color: #e74c3c;
    font-size: 2.5em;
    margin-bottom: 20px;
}

#gameOver p {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 20px;
}

.control-group {
    display: inline-block;
    text-align: center;
}

/* 游戏内元素样式 */
.ultraman {
    fill: #ff6b6b;
    stroke: #333;
    stroke-width: 2;
}

.zombie {
    fill: #2ecc71;
    stroke: #27ae60;
    stroke-width: 2;
}

.beam {
    fill: #f39c12;
    opacity: 0.8;
}

.tombstone {
    fill: #7f8c8d;
    stroke: #2c3e50;
    stroke-width: 2;
}

.fireball {
    fill: #e74c3c;
    opacity: 0.9;
}

.iceball {
    fill: #3498db;
    opacity: 0.9;
}